package com.mkyong;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.event.ActionEvent;

@ManagedBean(name="normal")
@RequestScoped
public class NormalBean {
	private String buttonId;

	public String getButtonId() {
		return buttonId;
	}

	public void setButtonId(String buttonId) {
		this.buttonId = buttonId;
	}
	
	public void printIt(ActionEvent event) {
		buttonId = event.getComponent().getClientId();
		System.out.println("in function printIt()\nbuttonId=" + buttonId);
	}
	
	public String outcome() {
		System.out.println("in function outcome()");
		return null;
	}
	
}
